/ Assembly List / LJCDBClientLib / ObjectManager`2 / LoadClientSql

Namespace - LJCDBClientLib


Parameters
sql - The client SQL statement.

Returns

The data record collection.

Syntax

C#
public TList LoadClientSql(String sql)

Executes a "Load" client SQL statement. (E)

Example

C#
// Selects multiple records with an SQL statement.
private static void LoadClientSql(ObjectManager<Person, Persons> personManager)
{
  Persons retValue = null;

  StringBuilder builder = new StringBuilder(64);
  builder.AppendLine("select * from PersonTest");
  string sql = builder.ToString();

  // Load the records.
  retValue = personManager.LoadClientSql(sql);
  return retValue;
}

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.